home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / src / netlib / stubs.c < prev    next >
C/C++ Source or Header  |  1994-02-03  |  1KB  |  50 lines

  1. RCS_ID_C = "$Id: stubs.c,v 3.1 1994/02/03 19:28:05 ppessi Exp $";
  2. /*
  3.  * stubs.c -- common stubs for bsdsocket.library
  4.  *
  5.  * Author: ppessi <Pekka.Pessi@hut.fi>
  6.  *
  7.  * Copyright © 1993 AmiTCP/IP Group, <AmiTCP-group@hut.fi>
  8.  *                  Helsinki University of Technology, Finland.
  9.  *
  10.  * Created      : Thu Feb  3 11:40:25 1994 ppessi
  11.  * Last modified: Thu Feb  3 18:27:30 1994 ppessi
  12.  */
  13.  
  14. #undef _OPTINLINE
  15. #include <proto/socket.h>
  16.  
  17. int 
  18. select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exeptfds,
  19.      struct timeval *timeout)
  20. {
  21.   /* call WaitSelect with NULL signal mask pointer */
  22.   return WaitSelect(nfds, readfds, writefds, exeptfds, timeout, NULL);
  23. }
  24.  
  25. char * 
  26. inet_ntoa(struct in_addr addr) 
  27. {
  28.   return Inet_NtoA(addr.s_addr);
  29. }
  30.  
  31. struct in_addr 
  32. inet_makeaddr(int net, int host)
  33. {
  34.   struct in_addr addr;
  35.   addr.s_addr = Inet_MakeAddr(net, host);
  36.   return addr;
  37. }
  38.  
  39. unsigned long 
  40. inet_lnaof(struct in_addr addr) 
  41. {
  42.   return Inet_LnaOf(addr.s_addr);
  43. }
  44.  
  45. unsigned long   
  46. inet_netof(struct in_addr addr)
  47. {
  48.   return Inet_NetOf(addr.s_addr);
  49. }
  50.